import markdown


def markdown_to_html(mdstr):
    exts = ['markdown.extensions.extra', 'markdown.extensions.codehilite',
            'markdown.extensions.tables', 'markdown.extensions.toc']

    html = markdown.markdown(mdstr, extensions=exts)
    return html
